package com.csist.service.bo.impl;

import com.csist.mapper.bo.UsertypeBoMapper;
import com.csist.pojo.bo.UsertypeBo;
import com.csist.service.bo.UsertypeBoService;
import com.csist.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @ClassName UsertypeBoServiceImpl
 * @Description 【自行描述】
 * @Author cn
 * @Date 2024/6/26 16:44
 * @Version 1.0
 */
public class UsertypeBoServiceImpl implements UsertypeBoService {
    private SqlSession sqlSession;
    private UsertypeBoMapper usertypeBoMapper;

    public UsertypeBoServiceImpl() {
        sqlSession = SqlSessionUtil.openSession();
        usertypeBoMapper = sqlSession.getMapper(UsertypeBoMapper.class);
    }

    @Override
    public List<UsertypeBo> selectAllUsertype() {
        return usertypeBoMapper.selectAllUsertype();
    }

    @Override
    public UsertypeBo getUsertypeById(int id) {
        return usertypeBoMapper.getUsertypeById(id);
    }
}
